package com.haiya.factory.absfactory.basic.factory;

import com.haiya.factory.absfactory.basic.product.ConcreteProduct11;
import com.haiya.factory.absfactory.basic.product.ConcreteProduct21;
import com.haiya.factory.absfactory.basic.product.Product1;
import com.haiya.factory.absfactory.basic.product.Product2;

public class ConcreteFactory1 implements AbstractFactory {
    @Override
    public Product1 newProduct1() {
        return new ConcreteProduct11();
    }

    @Override
    public Product2 newProduct2() {
        return new ConcreteProduct21();
    }
}
